﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="TestInfo.aspx.cs" Inherits="TestInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">


    <style type="text/css">
         
        .style2
        {
            width: 108px;
        }
        
        </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" border="0" width="100%" >
 <tr>
 <td colspan="1">&nbsp;</td>
 <td align="right"><h2>Test Info</h2></td>

 </tr>
    
    <tr>
        <td colspan="1">&nbsp;</td>
    
        <td align="left">
           <asp:Panel ID="pnlInfo" runat="server">
           <table  cellspacing="15px" width="40%" border="0" class="border"  >
             <tr >
               <td width="80px" align="left" ><asp:Label ID="lbTestName" runat="server" >Test Name:</asp:Label></td>
                <td width="80px" align="left" ><asp:Label ID="lblTestName" runat="server" Font-Bold="true" ></asp:Label></td>
             </tr>
           	
            <tr>
                <td  align="left"><asp:Label ID="lbSubjectName" runat="server" >Subject:</asp:Label></td>
                <td  align="left"><asp:Label ID="lblSubject" runat="server" Font-Bold="true"></asp:Label></td>
           </tr>
            <tr>
               <td  align="left"><asp:Label ID="lbTopicName" runat="server" >Topic:</asp:Label></td>
               <td  align="left"><asp:Label ID="lblTopic" runat="server" Font-Bold="true" ></asp:Label></td>
            </tr>
           <tr>
               <td  align="left"><asp:Label ID="lbQuestion" runat="server" >Questions:</asp:Label></td>
               <td  align="left"><asp:Label ID="lblQuestions" runat="server" Font-Bold="true" ></asp:Label></td>
               
           </tr>
           <tr>
               <td align="left" class="style2"><asp:Label ID="lbCutOffMarks" runat="server" >Cut Off Marks:</asp:Label></td>
              <td align="left" class="style2"><asp:Label ID="lblCutOffMarks" runat="server" Font-Bold="true" ></asp:Label></td>
           </tr>
           <tr>
              <td  align="left"><asp:Label ID="lbDuration" runat="server"  >Duration:</asp:Label></td>
              <td  align="left"><asp:Label ID="lblDuration" runat="server" Font-Bold="true" ></asp:Label></td>
              
          </tr>
          <tr>
             <td  align="left"><asp:Label ID="lblEndDate" runat="server" >Expires On:</asp:Label></td>
             <td  align="left"><asp:Label ID="lblExpiresOn" runat="server" Font-Bold="true" ></asp:Label></td>
             
         </tr>
         <tr>
              <td  align="left"><asp:Label ID="lblHistory" runat="server" >History:</asp:Label></td>
              <td  align="left">
                  <asp:GridView ID="gvTestAttempt" runat="server" AllowPaging="True" 
                      AutoGenerateColumns="False" BackColor="LightGoldenrodYellow" BorderColor="Tan" 
                      BorderWidth="1px" CellPadding="2" ForeColor="Black" 
                      GridLines="Vertical" PageSize="5" 
                      onpageindexchanging="gvTestAttempt_PageIndexChanging" 
                      DataKeyNames="TestAttemptId" onrowcommand="gvTestAttempt_RowCommand">
                      <AlternatingRowStyle BackColor="PaleGoldenrod" />
                      <Columns>
                            <asp:BoundField DataField="AttemptNo" HeaderText="AttemptNo" 
                              SortExpression="AttemptNo" />
                             <asp:BoundField DataField="AttemptDate" HeaderText="AttemptDate" 
                              SortExpression="AttemptDate" />
                              <asp:BoundField DataField="Result" HeaderText="Result" 
                              SortExpression="Result" />
                              <asp:BoundField DataField="Score" HeaderText="Score" 
                              SortExpression="Score" />
                              <asp:TemplateField HeaderText="Result">
                                <ItemTemplate>
                                    <asp:Button ID="btnScore" runat="server" Text="ScoreCard"
                                        CommandName="btnScoreClick" CommandArgument='<%# Eval("TestAttemptId") %>'
                                       BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                      </Columns>
                      <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                      <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                      <FooterStyle BackColor="Tan" />
                      <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" 
                          HorizontalAlign="Center" />
                      <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                          HorizontalAlign="Center" />
                      <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                      <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
                      <SortedAscendingCellStyle BackColor="#FAFAE7" />
                      <SortedAscendingHeaderStyle BackColor="#DAC09E" />
                      <SortedDescendingCellStyle BackColor="#E1DB9C" />
                      <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                  </asp:GridView>
              </td>
         </tr>
         <tr>
               <td align="left"><asp:Label ID="lblLibrary" runat="server" >Library:</asp:Label></td>
                             
         </tr>
         <tr><td colspan="1">&nbsp;</td></tr>
         <tr>
           <td align="right" ><asp:Button ID="btnBack" runat="server" Text="Back" Width="70px" 
                   BackColor="#ff9e35" BorderColor="#e17a0f" ForeColor="GhostWhite" 
                   Font-Bold="true" PostBackUrl="~/Student/TestsList.aspx" /></td>
           <td align="left">
               <asp:Button ID="btnTakeTest" runat="server" Text="Take Test" 
                   Width="70px" ForeColor="GhostWhite" Font-Bold="true" BackColor="#ff9e35" 
                   BorderColor="#e17a0f" onclick="btnTakeTest_Click"  /></td>
         </tr>
    
       </table>
      </asp:Panel>
    
     </td>
  
     </tr>
    
   </table>
</asp:Content>

